<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择年份，判断是否是闰年</title>

</head>

<body>
    <link rel="stylesheet" href="https://unpkg.com/@picocss/pico@1.*/css/pico.min.css">
    <main class="container">
        <details>
            <summary>问题</summary>
            <p>输入指定年份，判断是否是闰年</p>
        </details>




        <h3>JavaScript</h3>

        <label for="year">请选择年份:</label>
        <select id="year"></select>
        <button type="button" onclick="printSelectedYear()">判断当前年份</button>

        <h3>Typescript</h3>

        <label for="year-input">请输入年份：</label>
        <input type="text" id="year-input">

        <button onclick="switchData()">打印当前年份</button>







    </main>

    <script src="js.js" id="script-a"></script>
    <script src="ts.js" id="script-b"></script>

</body>

</html>